package com.hzit.client;


import com.hzit.client.factory.StudentClientFactory;
import com.hzit.client.impl.StudentClientImpl;
import com.hzit.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 作者：李嘉浩
 * 时间：2024-08-22-10:03
 * 功能：
 */
// @FeignClient(value = "hzit-student",fallback = StudentClientImpl.class)
@FeignClient(value = "hzit-student",fallbackFactory = StudentClientFactory.class)
public interface StudentClient {
    @GetMapping("/api/student/list")
    R list();

    @GetMapping("/api/student/findById/{id}")
    R findById(@PathVariable Integer id);
}
